[fix] revert location object to support ios 5