Fix for data[target] having nil

Compacting data[target] -- if data[target] has nil, we get a "ArgumentError: comparison of Float with nil failed" at data[target].min/max