Fixed software block bugs
Fixed top offset bug