fix location bug & fix camera exception