Fixed a bug regarding parameter order and sync delete function.