Fix for #46 had incorrect array length

Sorry dude, previous fix hadn't been tested.