Fix "x" function properly