Fix null pointer exception from copy-paste bug