fixed restblocks bug