Which level was that? is it one of the levels in the screenshots? Probably you locked a box in the wrong position so you had to restart the level or something.
No, I solved those. It's the one with the three buttons on the left hand side (one at the top, two at the bottom) but only two (!?) boxes to unlock them. I'm sure there is a way, I just couldn't find it :)