fixed locationlistener for previous version