fixed canonical id null exception