works after resizing now