fixed cut and paste bug