fixed crossplatform sizez bug