Basically fixed the resize button bug