fixed resizing bug and compiled works together