bug fixes in size fitting