fixed issue in backend (getlocation method in message.java)