Fix bug where data loggers crashes on start up due to bug