fix for invert, buildFromObject is bugged if your doing it wrong, it also now keeps entityset down to 1