Fixed error when resizing browser before project loaded