fix bug in size