lame cut and paste fix