Fixed error in obligations controller