fix goal state condition