Fixed nullpointer. The bug was the block subtype not set.