fixed bug where block size was not multiple of problem size