avoid deprecation warning from fog