fixed issue rest+negative doesn't work together