fixed redirect in term and payday controllers