fixed assersion appearing weird with window resized