fix session instances_ids_cache bug.
Merge branch 'dev' of https://github.com/fajoy/horizon into nctu