fixed x points issue