fixed typo in conditional causing testing to freeze