fix bug with displayx not being incremented.