fix block count