Fix bug for empty data during create action