fixed bug with defaults