bugfix caused segmentation failure, correct ref. to parent::toArray()