fixed a bug in block sizing