bug 782: changed order in if statement