bug fix in application helper