fixed condition variable name error