bug fix exception