Return and fix get_avalialble_transitions