properly fixed the resizable issue