Fixed a rendering bug and some issues with block placement