added if statement in blockproperty to prevent exception