Fix some issues in Navitia

This PR adds some improvements.
It also fixes issue #17