Fixed rendering issue with blocks and shadows.