fixed an error in Create method