Fixed a copy/paste induced segmentation fault