Fix immediate printing when used as a memory offset.