Fixed rendering bug in the pyramid