bugfix and small_size option