Fixed bug double x value on popup