Fixed better default values for contructors to avoid crashes.