fixed a default condition that was inappropriately defined as an integer