fix undefined check