Fix error when registration does not exist