fix registration hack now work