fixing bug in frontline