fixed the resizable bugs