prevent ending from breaking routes. Fixes #3
version 0.5