fix undefined checks