Before you load the code that causes the scaling, look at the upper right of the screen. Is there a G20 or G21 in the status line? If there's a G20, then you're in inch mode. If it says G21 before you load the code, it shouldn't be doing any scaling.