fixed fog to not re-init when window is resized