fixed peoblem with registration