Fix mistake when components was not an array