fix for auto when passing in a data array