fixed constructor with undefined options