Fix for comparison re type