Fixed segmap size bug