fix serious bugs in rcnn_make_spp_cache