fix blocks creation