Fixed registration function