fix bug with defaults method