fix undefined put