Fixed an error with default values