fixed issue with blocks