Fixed badly copied and pasted code.