Fix for a potential bug during the read of settings