fixed the resizing issue - kind of