fix array pop_back routine