fix MAX_SMALL_SIZE