fix the approve/deny error bug