Fixed error with blocks