Fixed some copy and a crash.