fixing issue where undefined would show