Fixed issue by stupid php deprecation of reference useage.