fix exception prone call