Fix bug during crud saving