fixing fog bug