fixed bug get_reason_for