Fix bug in size limitations