fixed x bug