fixes behavior for default statements