fix for column deletion
fix array_pop on array_keys