Fixed some copy-paste coding mistakes