Trying to make a puzzle in game. Have a strange problem (bug?)

Very welcome. Happy to help (consider marking this as the answer! thx <3)