Thank you for playing the game all the way to the end and for the positive review. We value your input and aim to fix the bugs, add more levels, and make the controls and puzzle solving mechanics more intuitive.
The portal is meant for the player only but it appears the switch that activates the portal gets confused when both the crate and the player stand in it. Nice catch!