invert data option - fixed bug