finaly fix registration hack.