fixed registration path problems