Same thing happened to me, I just took a different route
Didn't go straight to the treasure, but went left first
But yeah, I think it's a bug, it would be nice if they fixed it
it was intentional but we got a lot of reports of it so maybe we should just remove the one way wall and make the maze easier. Thanks for your feedback guys :)