added try catch to fix odd bug.