Fixed x updating

Signed-off-by: Daniel Pawłowski <danielpawlow@gmail.com>