fix #1 and bug with defaults method