fix the bug of allocate size of forwards based on level