Fixed bug with default values.