added check for default values when using gui designer