Fixed apply_integer (x -> -x when cursor before x)