update makeArray for phantomjs bug