Fix error that 'cannt call create before parent is saved