Coordinates of element is changing

If I run below code,I get output as -427 ,1002.if I run again ,I am getting output as -10 ,1002.Sometimes I get -809 ,1002.
x-coordinate is keep on changing and also which is negative.The element is visible in the screen. also isDisplayed() is giving “true”.
This issue is not happening always. Sometimes it works.

WebElement element=driver.findElement(By.xpath(“x-path of element”));
org.openqa.selenium.Point location=element.getLocation();
System.out.println(location.getX()+" ,"+location.getY());

I am using appium 1.6 with selenium-java.and Android real device.

Can anyone help me on this?