Fixed bug with LookupCrtId