Fixed small bugs in ap_slice_create and ap_slice_delete (manager.py)