Fixed annoying render bugs (disappearing, rendering outside the raster grid...)