Fixed crash when placing water or lava