fixing copy bug