Clean undefined options in constructor