fixed a bug in loading sizes