fixed allocation of window that does not yet have a set size. will now use 1x1