mainblock fix