fixed bug on manual input when creating records