Got the bug fixed, working on resizing.