fixing the scratch mode.