Fixed condition for escaping. Closes #4