The bug was being able to use the pyramid to get in at all. There's another way you're supposed to do it - a key.