Judge releases convicted rapist after 5 months