Fixed bug with painted slabs.