fixed allow_size bug #11