Fix bug: position x is set wrongly.