Fix bug can not register in smartphone