corrected a small bug when reading partitioned variables (previously integer variables has a problem)