fix big bug with default values