It is a known issue (there are several threads on this). You can only use pyramids within the same map. If you go to another map they are pulled together in your inventory.

I think it is by design - but agree it makes the pyramids not very useful.