A man spent 5 months in jail not knowing his bail was $2