fix undefined options