Fix for unit tile calculation.