Minor bug with copy and paste edge case fixed