More defensive code in create_size